
cmake_minimum_required(VERSION 3.4.1)
# 指定源文件目录
AUX_SOURCE_DIRECTORY(${CMAKE_SOURCE_DIR} SRC_LIST)
# 导入头文件
include_directories(include)
# 指定编译的动态库
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -L${CMAKE_SOURCE_DIR}/libs/${ANDROID_ABI}")

add_library( # Sets the name of the library.
        native-lib
        SHARED
        ${SRC_LIST}
        )


find_library( # Sets the name of the path variable.
        log-lib
        log)

target_link_libraries( # Specifies the target library.
        native-lib
        opencv_java4
        jnigraphics
        ${log-lib})